<jsp:useBean id="korisnik"
	type="rs.ac.uns.ftn.informatika.mbs2.e11031.etaksi.entitet.Korisnik"
	scope="session" />
<jsp:useBean id="vozilo"
	type="rs.ac.uns.ftn.informatika.mbs2.e11031.etaksi.entitet.Vozilo"
	scope="request" />
<jsp:useBean id="vozaci"
	type="java.util.Collection<rs.ac.uns.ftn.informatika.mbs2.e11031.etaksi.entitet.Vozac>"
	scope="request" />

<html>
<head>
<title><fmt:message key="promenaVozila" /></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link href="css/tema.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<table class="zaglavlje">
		<thead>
			<tr>
				<th><a
					href="/${initParam.nazivAplikacije}/PrikazVozilaKontroler"><fmt:message
							key="prikazVozaca" /></a></th>
				<th><a
					href="/${initParam.nazivAplikacije}/jsp/promenaLicnihPodataka.jsp"><fmt:message
							key="promenaPodataka" /></a></th>
				<th><a
					href="/${initParam.nazivAplikacije}/jsp/promenaLozinke.jsp"><fmt:message
							key="promenaLozinke" /></a></th>
				<th><a href="/${initParam.nazivAplikacije}/OdjavaKontroler">
						<fmt:message key="odjava" />
				</a></th>
			</tr>
		</thead>
	</table>
	<form action="/${initParam.nazivAplikacije}/PromenaVozilaKontroler"
		method="post" accept-charset="utf-8">
		<table>
			<tbody>
				<tr>
					<td><fmt:message key="registarskiBroj" />:</td>
					<td><input type="text" name="registarskiBroj"
						value="${vozilo.registarskiBroj}" required /></td>
				</tr>
				<tr>
					<td><fmt:message key="kategorija" />:</td>
					<td><select name="kategorija">
							<option value="A">A</option>
							<option value="B">B</option>
							<option value="C">C</option>
							<option value="D">D</option>
							<option value="E">E</option>
					</select></td>
				</tr>
				<tr>
					<td><fmt:message key="marka" />:</td>
					<td><input type="text" name="marka" value="${vozilo.marka}"
						required /></td>
				</tr>
				<tr>
					<td><fmt:message key="tip" />:</td>
					<td><input type="text" name="tip" value="${vozilo.tip}"
						required /></td>
				</tr>
				<tr>
					<td><fmt:message key="boja" />:</td>
					<td><input type="text" name="boja" value="${vozilo.boja}"
						required /></td>
				</tr>
				<tr>
					<td><fmt:message key="mestaZaSedenje" />:</td>
					<td><input type="text" name="mestaZaSedenje"
						value="${vozilo.mestaZaSedenje}" required /></td>
				</tr>
				<tr>
					<td><fmt:message key="zapreminaPrtljaznika" />:</td>
					<td><input type="text" name="zapreminaPrtljaznika"
						value="${vozilo.zapreminaPrtljaznika}" required /></td>
				</tr>
				<tr>
					<td><fmt:message key="nosivostPrtljaznika" />:</td>
					<td><input type="text" name="nosivostPrtljaznika"
						value="${vozilo.nosivostPrtljaznika}" required /></td>
				</tr>
				<tr>
					<td><fmt:message key="oznaka" />:</td>
					<td><input type="text" name="oznaka" value="${vozilo.oznaka}"
						required /></td>
				</tr>
				<tr>
					<td><fmt:message key="vozac" />:</td>
					<td><select name="vozac"><c:forEach var="vozac"
								items="${vozaci}">
								<option value="${vozac.id}">${vozac.ime}
									${vozac.prezime}</option>
							</c:forEach></select></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td><input type="submit" value='<fmt:message key="promeni" />' /></td>
				</tr>
			</tbody>
		</table>
	</form>
</body>
</html>
